package Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import VOs.DateVO;

@Entity
public class Date {

	/**
	 * @uml.property  name="id"
	 */
	@Id
	private long id;
	@Column(name = "\"DAY\"")
	private int day;
	@Column(name = "\"MONTH\"")
	private int month;
	@Column(name = "\"YEAR\"")
	private int year;
	
	public DateVO tovo(){
		DateVO vo = new DateVO();
		vo.setDate(getDay());
		vo.setId(getId());
		vo.setMonth(getMonth());
		vo.setYear(getYear());
		
		return vo;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
}
